package cqrtplm.mapper;

import com.hustcad.plm.pdm.mpm.model.dto.capp.TyplmTechnologyBookCardWFObjInfo;
import com.ty.basic.entity.IdentifierEntity;
import cqrtplm.dto.ProcessRouteInfoDTO;
import cqrtplm.dto.processToolDTO;
import org.apache.ibatis.annotations.Param;
import com.alibaba.fastjson.JSONObject;
import org.springframework.stereotype.Repository;

import java.math.BigInteger;
import java.util.List;
import java.util.Set;

@Repository
public interface RTProcessMapper {

    List<String> listGx(@Param("processIds") List<String> stageOidList);

    List<processToolDTO> queryStepToolByProcessOid(@Param("processIds") List<String> gxOidList);

    List<IdentifierEntity> listTool(@Param("numbers") List<String> numbers);

    List<IdentifierEntity> listMaterial(@Param("numbers") List<String> materialNumbers);

    List<TyplmTechnologyBookCardWFObjInfo> selectProcessByPlanOid(@Param("processIds") Set<BigInteger> planOidList);

    List<TyplmTechnologyBookCardWFObjInfo> selectTypeByOperationOid(@Param("processIds") Set<BigInteger> planOidList);

    List<TyplmTechnologyBookCardWFObjInfo> selectProcessByStageOid(@Param("processIds") List<BigInteger> stageOidList);

    List<ProcessRouteInfoDTO> selectProcessInfoByOids(@Param("oids") Set<BigInteger> oids);

    List<JSONObject> getProcessPlanAttributes(String oid);
}
